package com.nowcoder.community.service;

import com.nowcoder.community.entity.DiscussPost;
import org.springframework.data.domain.Page;

/**
 * @author cjh
 * @date 2023/2/1 - 14:37
 */
public interface IElasticSearchService {

    public void saveDiscussPost(DiscussPost discussPost);

    void deleteDiscussPost(int id);

    Page<DiscussPost> searchDiscussPost(String keyword,int current,int limit);
}
